<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>JpetStore</title>
    <link rel="stylesheet" href="../css/jpetstore.css" type="text/css"/>
    <link rel="stylesheet" href="../css/jquery-ui.css" type="text/css"/>
    <script th:src = "@{/JS/jquery-3.2.1.js}"></script>
    <script th:src = "@{/JS/jquery-ui.js}"></script>
</head>
<body>
    <div th:replace="/common/header.html"></div>
        <div id="Content">
            <div align="center">
                <a href="/catalog/main">回到主页面</a>
            </div>
            <div id="description">
                请填写下面三栏信息
            </div>
            <div id="Catalog" class="newOrderDiv">
                <form action="confirmOrder" method="post" id="newOrderForm">
                    <ul class="tab-nav">
                        <li class="tabNav-active">Payment Details</li>
                        <li>Personal Information</li>
                        <li>Billing Address</li>
                    </ul>
                    <div class="tabBox" id="PaymentDetails">
                        <table class="newOrderFormTable">
                            <tr>
                                <th colspan="2">Payment Details</th>
                            </tr>
                            <tr>
                                <td>Card Type:</td>
                                <td><select name="cardType">
                                    <option selected="selected" value="Visa">信用卡</option>
                                    <option value="MasterCard">万事达卡</option>
                                    <option value="zhifubao">支付宝</option>
                                </select></td>
                            </tr>
                            <tr>
                                <td>Card Number:</td>
                                <td><input id="cardNumber" name="creditCard" value="999 9999 9999 9999" type="text"> * Use a fake
                                    number!</td>
                            </tr>
                        </table>
                    </div>
                    <div class="tabBox">
                        <table class="newOrderFormTable">
                            <tr>
                                <th colspan=2>Personal Information</th>
                            </tr>

                            <tr>
                                <td>First name:</td>
                                <td><input id="firstName" name="billToFirstName" th:value="${loginAccount.firstName}" type="text" ></td>
                            </tr>
                            <tr>
                                <td>Last name:</td>
                                <td><input id="lastName" name="billToLastName" th:value="${loginAccount.lastName}" type="text" ></td>
                            </tr>
                            <tr>
                                <td>Phone:</td>
                                <td><input id="phone" name="phone" th:value="${loginAccount.phone}" type="text"></td>
                            </tr>
                        </table>
                    </div>
                    <div class="tabBox">
                        <table class="newOrderFormTable">
                            <tr>
                                <th colspan=2>Billing Address</th>
                            </tr>
                            <tr>
                                <td>Address 1:</td>
                                <td><input name="billAddress1" th:value="${loginAccount.address1}" type="text" size="40" required="required"></td>
                            </tr>
                            <tr>
                                <td>Address 2:</td>
                                <td><input name="billAddress2" th:value="${loginAccount.address2}" type="text" size="40"></td>
                            </tr>
                            <tr>
                                <td>Provice:</td>
                                <td><input name="billCity" th:value="${loginAccount.city}" type="text" required="required"></td>>
                            </tr>
                            <tr>
                                <td>State:</td>
                                <td><input name="billState" th:value="${loginAccount.state}" type="text" size="4" required="required"></td>
                            </tr>
                            <tr>
                                <td>Zip:</td>
                                <td><input name="billZip" th:value="${loginAccount.zip}" type="text" size="10" required="required"></td>
                            </tr>
                            <tr>
                                <td>Country:</td>
                                <td><input name="billCountry" th:value="${loginAccount.country}" type="text" size="15" required="required"></td>
                            </tr>

                            <tr>
                                <td colspan="2"><input name="shippingAddressRequired" value="false" type="checkbox">
                                    Ship to different address...</td>
                            </tr>
                        </table>
                        <input type="submit" value="提交" id="newOrderSubmit"/>
                    </div>
                </form>
                <script th:src = "@{/JS/order/NewOrderForm.js}"></script>
            </div>
        </div>
        <div th:replace="/common/footer.html"></div>
</body>
</html>